//求和相关的配置
import axios from "axios";

export default {
    namespaced: true,
    actions: {
        //登录，登陆成功把
        updateUser(context, user) {
            context.commit('UpdateUser', user)
        },
        //修改登录状态
        updateLogin(context, value) {
            context.commit("UpdateLogin", value)
        },
    },
    mutations: {
        UpdateUser(state, value) {
            state.user = value
        },
        UpdateLogin(state, value) {
            state.login = value
            sessionStorage.setItem("login", value)
        },
    },
    state: {
        user: [{}],
        dept: [{}],
        login: false,
    },
    getters: {},
}
